package com.gonsin.gmessage.logic.mqtt;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

@Data
@ApiModel("在线设备信息")
@Builder
public class OnlineDeviceBo {

    @ApiModelProperty("在线设备的uuid")
    private final String mac;

    @ApiModelProperty("设备上线时候的IP")
    private final String ip;

    @ApiModelProperty("连接id")
    private String connectionId;

    @ApiModelProperty("如果是通过代理连接到服务器的，则此值表示代理的uuid，如果是直接连接到服务器，则此值为空")
    private String proxyUuid;


//    public OnlineDeviceBo(String mac, String ip, String proxyUuid) {
//        this.mac = mac;
//        this.ip = ip;
//        this.proxyUuid = proxyUuid;
//    }
//
//    public OnlineDeviceBo(String mac, String ip) {
//        this.mac = mac;
//        this.ip = ip;
//    }
}
